package com.tamo.ppresta.httpapi;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.tamo.ppresta.constant.API_CONSTANT;

import org.jetbrains.annotations.NotNull;

/**
 * @author yeyang
 * @name ppresta
 * @class name：com.tamo.ppresta.httpapi
 * @class describe
 * @time 2022/12/31 20:11
 * @change
 * @chang time
 * @class describe
 */
public class FileUploadBase64StrApi implements IRequestApi {
    @NonNull
    @NotNull
    @Override
    public String getApi() {
        return API_CONSTANT.FILE_UPLOAD_BASE64_STR;
    }

    /**
     * 文件的base64值
     */
    private String base64Str;
    /**
     * 文件的base64值
     */
    private String serviceType;
    /**
     * 来源类型(oho)
     */
    private String sourceType;
    /**
     * 文件后缀(png、jpg、jpeg)
     */
    private String extName;

    public FileUploadBase64StrApi setBase64Str(String base64Str) {
        this.base64Str = base64Str;
        return this;
    }

    public FileUploadBase64StrApi setServiceType(String serviceType) {
        this.serviceType = serviceType;
        return this;
    }

    public FileUploadBase64StrApi setSourceType(String sourceType) {
        this.sourceType = sourceType;
        return this;
    }

    public FileUploadBase64StrApi setExtName(String extName) {
        this.extName = extName;
        return this;
    }
}